import React, { Component } from 'react'
import styles from './Apartment.module.scss'

class Apartment extends Component {
    constructor(props) {
        super(props);
        console.log(props);
      }

    handleClick = () => {
        window.history.go(-1);
    }

    render() {
        return (
            <div className={styles.Apartment}>
                  <div className={styles.return} onClick={this.handleClick}>{"<"}</div>
            </div>
        )
    }
}

export default Apartment 